{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "from machine_lib import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "b'{\"user\":{\"id\":\"JW80368\"},\"token\":{\"expiry\":14400.0},\"permissions\":[\"CONSULTANT\",\"MULTI_SIMULATION\",\"PROD_ALPHAS\",\"REFERRAL\",\"SUPER_ALPHA\",\"VISUALIZATION\",\"WORKDAY\"]}'\n"
     ]
    }
   ],
   "source": [
    "s = login()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "b'{\"user\":{\"id\":\"JW80368\"},\"token\":{\"expiry\":14400.0},\"permissions\":[\"CONSULTANT\",\"MULTI_SIMULATION\",\"PROD_ALPHAS\",\"REFERRAL\",\"SUPER_ALPHA\",\"VISUALIZATION\",\"WORKDAY\"]}'\n",
      "0\n",
      "['waZaGAp', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(market))', 2.16, 0.2054, 1.4, 0.00084, '2024-12-15T11:47:56-05:00', 1, 1]\n",
      "100\n",
      "['9pjpMv9', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(market))', 2.16, 0.2054, 1.4, 0.00084, '2024-12-15T11:47:43-05:00', 1, 1]\n",
      "['a1b7vJx', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_minvol1m_normc50))', 2.15, 0.205, 1.39, 0.000839, '2024-12-15T11:53:02-05:00', 1, 1]\n",
      "['OGN7avJ', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_minvol1m_normc20))', 2.15, 0.205, 1.39, 0.000839, '2024-12-15T11:53:01-05:00', 1, 1]\n",
      "['a1b19W9', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_minvol1m_normc50))', 2.15, 0.205, 1.39, 0.000839, '2024-12-15T11:49:19-05:00', 1, 1]\n",
      "['LGNGYla', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_minvol1m_normc20))', 2.15, 0.205, 1.39, 0.000839, '2024-12-15T11:49:19-05:00', 1, 1]\n",
      "['MGaGe1M', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_minvol1m_normc50))', 2.15, 0.205, 1.39, 0.000839, '2024-12-15T11:47:33-05:00', 1, 1]\n",
      "['QGbGNGW', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_minvol1m_normc20))', 2.15, 0.205, 1.39, 0.000839, '2024-12-15T11:47:32-05:00', 1, 1]\n",
      "['Nbabzlo', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sector))', 2.12, 0.2075, 1.34, 0.000794, '2024-12-15T11:47:56-05:00', 1, 1]\n",
      "['qNxjkgO', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_allc50))', 2.09, 0.2181, 1.24, 0.000704, '2024-12-15T11:54:15-05:00', 1, 1]\n",
      "['lWvj605', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_allc10))', 2.08, 0.21, 1.3, 0.000779, '2024-12-15T11:54:16-05:00', 1, 1]\n",
      "['xN3jwQn', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(pv13_10_f3_g2_minvol_1m_sector))', 2.05, 0.1829, 1.3, 0.000803, '2024-12-15T11:54:13-05:00', 1, 1]\n",
      "['kPojkRK', \"group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(bucket(group_rank(cap,sector),range='0,1,0.1')))\", 2.05, 0.2371, 1.18, 0.000662, '2024-12-15T11:54:12-05:00', 1, 1]\n",
      "['oNLqwOJ', \"group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(bucket(rank(cap), range='0.1, 1, 0.1')))\", 2.05, 0.2344, 1.19, 0.000671, '2024-12-15T11:54:11-05:00', 1, 1]\n",
      "['ZEbEz3d', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sector))', 2.05, 0.2574, 1.15, 0.000626, '2024-12-15T11:47:43-05:00', 1, 1]\n",
      "['Xob7Evb', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_allc50))', 2.03, 0.2171, 1.23, 0.00073, '2024-12-15T11:53:31-05:00', 1, 1]\n",
      "['lWvjXXO', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_minvol1mc20))', 2.03, 0.2197, 1.19, 0.000686, '2024-12-15T11:53:01-05:00', 1, 1]\n",
      "['9pjVAlq', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(market))', 2.02, 0.2063, 1.28, 0.000801, '2024-12-15T12:09:24-05:00', 1, 1]\n",
      "['PG2ZQMq', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(market))', 2.02, 0.2063, 1.28, 0.000801, '2024-12-15T12:05:25-05:00', 1, 1]\n",
      "['JGN7lgW', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(market))', 2.02, 0.2063, 1.28, 0.000801, '2024-12-15T11:53:40-05:00', 1, 1]\n",
      "['bQbjEzR', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(subindustry))', 2.02, 0.2063, 1.28, 0.000801, '2024-12-15T11:53:12-05:00', 1, 1]\n",
      "['AGNlKrw', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(industry))', 2.02, 0.2063, 1.28, 0.000801, '2024-12-15T11:53:11-05:00', 1, 1]\n",
      "['PG279PL', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sector))', 2.02, 0.2063, 1.28, 0.000801, '2024-12-15T11:53:11-05:00', 1, 1]\n",
      "['2pwld58', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(market))', 2.02, 0.2063, 1.28, 0.000801, '2024-12-15T11:53:10-05:00', 1, 1]\n",
      "['dZbOlaJ', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sector))', 2.01, 0.2084, 1.25, 0.000769, '2024-12-15T12:09:25-05:00', 1, 1]\n",
      "['kPojlwk', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(pv13_2_f4_g3_minvol_1m_sector))', 2.01, 0.2384, 1.12, 0.000625, '2024-12-15T11:53:15-05:00', 1, 1]\n",
      "['waZY5ax', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1m_normc50))', 2.0, 0.2059, 1.26, 0.000796, '2024-12-15T12:10:01-05:00', 1, 1]\n",
      "['QGb3nVK', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1m_normc20))', 2.0, 0.2059, 1.26, 0.000796, '2024-12-15T12:10:01-05:00', 1, 1]\n",
      "['xN3YeAq', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1m_normc50))', 2.0, 0.2059, 1.26, 0.000796, '2024-12-15T12:09:51-05:00', 1, 1]\n",
      "['WAbPNEQ', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1m_normc20))', 2.0, 0.2059, 1.26, 0.000796, '2024-12-15T12:09:50-05:00', 1, 1]\n",
      "['dZbjwNX', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1m_normc50))', 2.0, 0.2059, 1.26, 0.000796, '2024-12-15T11:53:34-05:00', 1, 1]\n",
      "['EGplAnL', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1m_normc20))', 2.0, 0.2059, 1.26, 0.000796, '2024-12-15T11:53:33-05:00', 1, 1]\n",
      "['QGb7dWp', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(pv13_5_minvol_1m_sector))', 2.0, 0.2269, 1.17, 0.00069, '2024-12-15T11:53:31-05:00', 1, 1]\n",
      "['2pwlk5P', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(pv13_10_minvol_1m_sector))', 2.0, 0.2263, 1.17, 0.00069, '2024-12-15T11:53:30-05:00', 1, 1]\n",
      "['qNxjq2Z', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(pv13_10_f3_g2_minvol_1m_sector))', 2.0, 0.2184, 1.21, 0.00073, '2024-12-15T11:53:14-05:00', 1, 1]\n",
      "['vNrjgbz', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(pv13_20_minvol_1m_sector))', 1.99, 0.2233, 1.18, 0.000704, '2024-12-15T11:53:13-05:00', 1, 1]\n",
      "['nNd7VRE', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(sta1_minvol1mc50))', 1.99, 0.2163, 1.13, 0.000643, '2024-12-15T11:53:00-05:00', 1, 1]\n",
      "['Nba7Wke', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(pv13_20_minvol_1m_sector))', 1.98, 0.1732, 1.25, 0.000801, '2024-12-15T11:54:12-05:00', 1, 1]\n",
      "['6pjlbQL', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1mc20))', 1.98, 0.2168, 1.18, 0.000712, '2024-12-15T11:53:33-05:00', 1, 1]\n",
      "['9pjXQm9', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_allc10))', 1.98, 0.2083, 1.23, 0.000768, '2024-12-15T11:53:32-05:00', 1, 1]\n",
      "['QGbGzRg', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(industry))', 1.98, 0.1698, 1.28, 0.000833, '2024-12-15T11:47:56-05:00', 1, 1]\n",
      "['1pXjp8z', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(pv13_10_minvol_1m_sector))', 1.97, 0.2862, 1.12, 0.000643, '2024-12-15T12:54:04-05:00', 1, 1]\n",
      "['waZbmd1', 'group_scale(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(sta1_minvol1m_normc50))', 1.97, 0.2704, 1.25, 0.000804, '2024-12-15T12:33:50-05:00', 1, 1]\n",
      "['9pjWvOr', 'group_scale(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(sta1_minvol1m_normc20))', 1.97, 0.2704, 1.25, 0.000804, '2024-12-15T12:33:49-05:00', 1, 1]\n",
      "['MGa3WaL', 'group_normalize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(sta1_minvol1m_normc50))', 1.97, 0.2704, 1.25, 0.000804, '2024-12-15T12:33:44-05:00', 1, 1]\n",
      "['g8bZAQJ', 'group_normalize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(sta1_minvol1m_normc20))', 1.97, 0.2704, 1.25, 0.000804, '2024-12-15T12:33:44-05:00', 1, 1]\n",
      "200\n",
      "['xN3bqal', 'group_scale(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(market))', 1.97, 0.2703, 1.25, 0.000802, '2024-12-15T12:33:17-05:00', 1, 1]\n",
      "['kPogE2P', 'group_zscore(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(market))', 1.97, 0.2703, 1.25, 0.000802, '2024-12-15T12:32:57-05:00', 1, 1]\n",
      "['e3bbNvl', 'group_normalize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(market))', 1.97, 0.2703, 1.25, 0.000802, '2024-12-15T12:28:45-05:00', 1, 1]\n",
      "['GGblv9Z', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1mc50))', 1.96, 0.2271, 1.12, 0.000659, '2024-12-15T11:53:32-05:00', 1, 1]\n",
      "['RmbAmgd', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(pv13_5_minvol_1m_sector))', 1.95, 0.286, 1.11, 0.000643, '2024-12-15T12:54:05-05:00', 1, 1]\n",
      "['e3b6LbN', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(pv13_10_f3_g2_minvol_1m_sector))', 1.95, 0.2825, 1.11, 0.000644, '2024-12-15T12:52:20-05:00', 1, 1]\n",
      "['2pwm06w', 'group_scale(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(sta1_allc10))', 1.95, 0.3578, 1.05, 0.00058, '2024-12-15T12:33:47-05:00', 1, 1]\n",
      "['WAbVvRQ', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(oth455_relation_n2v_p10_q200_w5_pca_fact1_cluster_20))', 1.95, 0.235, 1.16, 0.000707, '2024-12-15T11:37:28-05:00', 1, 1]\n",
      "['EGpvKmJ', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_allc10))', 1.94, 0.2109, 1.18, 0.000737, '2024-12-15T12:10:42-05:00', 1, 1]\n",
      "['lWv8pA5', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sector))', 1.94, 0.2573, 1.07, 0.000608, '2024-12-15T12:05:26-05:00', 1, 1]\n",
      "['qNxWXLO', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_allc50))', 1.92, 0.219, 1.1, 0.000663, '2024-12-15T12:10:42-05:00', 1, 1]\n",
      "['xN3jgXp', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(oth455_partner_roam_w3_pca_fact1_cluster_5))', 1.92, 0.2223, 1.19, 0.000763, '2024-12-15T11:53:02-05:00', 1, 1]\n",
      "['6pjKmOp', 'group_zscore(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(sector))', 1.91, 0.2631, 1.2, 0.000789, '2024-12-15T12:32:57-05:00', 1, 1]\n",
      "['a1b7v9v', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(pv13_5_f3_g2_minvol_1m_sector))', 1.91, 0.2219, 1.1, 0.000669, '2024-12-15T11:53:14-05:00', 1, 1]\n",
      "['9pjX02o', \"group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(bucket(group_rank(cap,sector),range='0,1,0.1')))\", 1.91, 0.2302, 1.1, 0.000664, '2024-12-15T11:53:13-05:00', 1, 1]\n",
      "['dZbjLov', \"group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(bucket(rank(cap), range='0.1, 1, 0.1')))\", 1.91, 0.2282, 1.11, 0.000673, '2024-12-15T11:53:12-05:00', 1, 1]\n",
      "['waZE0vx', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(oth455_relation_roam_w3_kmeans_cluster_20))', 1.91, 0.2129, 1.19, 0.000779, '2024-12-15T11:37:28-05:00', 1, 1]\n",
      "['e3b6LzO', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(pv13_20_minvol_1m_sector))', 1.89, 0.285, 1.05, 0.000616, '2024-12-15T12:52:19-05:00', 1, 1]\n",
      "['VGadRjJ', 'group_zscore(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(pv13_10_f3_g2_minvol_1m_sector))', 1.88, 0.2623, 1.07, 0.000653, '2024-12-15T12:58:26-05:00', 1, 1]\n",
      "['EGpVG9R', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_allc50))', 1.87, 0.2839, 1.02, 0.0006, '2024-12-15T12:54:05-05:00', 1, 1]\n",
      "['QGb3Q7G', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(pv13_10_f3_g2_minvol_1m_sector))', 1.87, 0.184, 1.14, 0.000744, '2024-12-15T12:10:39-05:00', 1, 1]\n",
      "['MGaZQ3n', 'group_zscore(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(pv13_5_f3_g2_minvol_1m_sector))', 1.86, 0.4206, 1.06, 0.000651, '2024-12-15T14:39:12-05:00', 8, 1]\n",
      "['bQbR99M', \"group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(bucket(rank(cap), range='0.1, 1, 0.1')))\", 1.86, 0.2361, 1.04, 0.000622, '2024-12-15T12:10:37-05:00', 1, 1]\n",
      "['2pwlqqx', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(pv13_5_f3_g2_minvol_1m_sector))', 1.86, 0.1726, 1.13, 0.000739, '2024-12-15T11:54:13-05:00', 1, 1]\n",
      "['dZbjL7E', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(oth455_relation_n2v_p10_q200_w5_pca_fact1_cluster_20))', 1.86, 0.2264, 1.07, 0.000668, '2024-12-15T11:53:04-05:00', 1, 1]\n",
      "['zN8kpQV', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(oth455_relation_roam_w3_kmeans_cluster_20))', 1.86, 0.2133, 1.14, 0.000745, '2024-12-15T11:53:03-05:00', 1, 1]\n",
      "['waZ2pAx', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_5_minvol_1m_sector))', 1.85, 0.1065, 1.24, 0.001061, '2024-12-15T14:00:35-05:00', 1, 1]\n",
      "['2pw9j1x', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1mc50))', 1.85, 0.1572, 1.18, 0.000808, '2024-12-15T13:54:17-05:00', 1, 1]\n",
      "['MGa0n5r', 'group_scale(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(market))', 1.85, 0.2765, 1.08, 0.000683, '2024-12-15T12:58:50-05:00', 1, 1]\n",
      "['zN8rLNV', 'group_scale(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_minvol1m_normc50))', 1.85, 0.2766, 1.08, 0.000685, '2024-12-15T12:58:35-05:00', 1, 1]\n",
      "['oNLokNm', 'group_scale(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_minvol1m_normc20))', 1.85, 0.2766, 1.08, 0.000685, '2024-12-15T12:58:34-05:00', 1, 1]\n",
      "['lWvMNl7', 'group_zscore(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_minvol1m_normc50))', 1.85, 0.2766, 1.08, 0.000685, '2024-12-15T12:58:33-05:00', 1, 1]\n",
      "['g8bW01O', 'group_zscore(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_minvol1m_normc20))', 1.85, 0.2766, 1.08, 0.000685, '2024-12-15T12:58:33-05:00', 1, 1]\n",
      "['QGbYoX5', 'group_zscore(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(market))', 1.85, 0.2765, 1.08, 0.000683, '2024-12-15T12:58:27-05:00', 1, 1]\n",
      "['zN8r0EX', 'group_normalize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_minvol1m_normc50))', 1.85, 0.2766, 1.08, 0.000685, '2024-12-15T12:58:00-05:00', 1, 1]\n",
      "['OGNJV2v', 'group_normalize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_minvol1m_normc20))', 1.85, 0.2766, 1.08, 0.000685, '2024-12-15T12:58:00-05:00', 1, 1]\n",
      "['3pXjkVO', 'group_normalize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(market))', 1.85, 0.2765, 1.08, 0.000683, '2024-12-15T12:57:15-05:00', 1, 1]\n",
      "['m5mYj3p', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_minvol1m_normc50))', 1.85, 0.2766, 1.08, 0.000685, '2024-12-15T12:54:07-05:00', 1, 1]\n",
      "['QGbY7M5', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_minvol1m_normc20))', 1.85, 0.2766, 1.08, 0.000685, '2024-12-15T12:54:07-05:00', 1, 1]\n",
      "['xN31jKl', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_allc10))', 1.85, 0.2782, 1.06, 0.000657, '2024-12-15T12:54:06-05:00', 1, 1]\n",
      "['8pjvnLV', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(subindustry))', 1.85, 0.2765, 1.08, 0.000683, '2024-12-15T12:52:17-05:00', 1, 1]\n",
      "['OGNJooq', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(industry))', 1.85, 0.2765, 1.08, 0.000683, '2024-12-15T12:52:16-05:00', 1, 1]\n",
      "['vNrOdeb', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sector))', 1.85, 0.2765, 1.08, 0.000683, '2024-12-15T12:52:16-05:00', 1, 1]\n",
      "['XobR1Y8', 'group_neutralize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(market))', 1.85, 0.2765, 1.08, 0.000683, '2024-12-15T12:52:15-05:00', 1, 1]\n",
      "['8pjPbAW', 'group_scale(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(sector))', 1.85, 0.2746, 1.12, 0.000736, '2024-12-15T12:33:17-05:00', 1, 1]\n",
      "['Nba7Wgo', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(pv13_10_minvol_1m_sector))', 1.85, 0.1624, 1.15, 0.000779, '2024-12-15T11:54:14-05:00', 1, 1]\n",
      "['oNLrOQl', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1mc50))', 1.84, 0.2898, 1.14, 0.000761, '2024-12-15T14:34:00-05:00', 8, 1]\n",
      "['LGN9Rp2', \"group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(bucket(group_rank(cap,sector),range='0,1,0.1')))\", 1.84, 0.2384, 1.01, 0.000607, '2024-12-15T12:10:38-05:00', 1, 1]\n",
      "['e3b9dXJ', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sta1_minvol1mc20))', 1.84, 0.2204, 1.03, 0.000631, '2024-12-15T12:09:50-05:00', 1, 1]\n",
      "['Yvb7wNA', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(pv13_5_minvol_1m_sector))', 1.84, 0.1543, 1.16, 0.000796, '2024-12-15T11:54:15-05:00', 1, 1]\n",
      "['RmbKWZb', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1mc20))', 1.83, 0.2868, 1.15, 0.000795, '2024-12-15T14:34:00-05:00', 8, 1]\n",
      "['oNLRWdJ', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_allc50))', 1.83, 0.1491, 1.2, 0.000862, '2024-12-15T13:54:16-05:00', 1, 1]\n",
      "['XobenLl', 'group_scale(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1m_normc50))', 1.82, 0.3308, 1.18, 0.000835, '2024-12-15T14:39:05-05:00', 8, 1]\n",
      "['EGpLEYK', 'group_scale(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1m_normc20))', 1.82, 0.3308, 1.18, 0.000835, '2024-12-15T14:39:05-05:00', 8, 1]\n",
      "['e3bV7zg', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1mc20))', 1.82, 0.1558, 1.15, 0.000796, '2024-12-15T14:00:28-05:00', 1, 1]\n",
      "['0pXxjO6', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_10_f3_g2_minvol_1m_sector))', 1.82, 0.1499, 1.2, 0.000877, '2024-12-15T13:54:18-05:00', 1, 1]\n",
      "['MGad0Pn', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1mc20))', 1.82, 0.1485, 1.19, 0.000862, '2024-12-15T13:54:18-05:00', 1, 1]\n",
      "['kPovgpl', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_10_minvol_1m_sector))', 1.82, 0.1563, 1.17, 0.000821, '2024-12-15T13:54:15-05:00', 1, 1]\n",
      "['waZ3bdl', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_5_minvol_1m_sector))', 1.81, 0.1567, 1.15, 0.000807, '2024-12-15T13:54:16-05:00', 1, 1]\n",
      "['j6AjLrj', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(oth455_relation_n2v_p10_q200_w5_pca_fact1_cluster_20))', 1.81, 0.2361, 1.05, 0.000669, '2024-12-15T11:53:42-05:00', 1, 1]\n",
      "['pNRMwNg', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1mc50))', 1.8, 0.1554, 1.1, 0.000752, '2024-12-15T14:00:27-05:00', 1, 1]\n",
      "['vNr63Oa', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(pv13_10_f3_g2_minvol_1m_sector))', 1.79, 0.2908, 1.15, 0.000825, '2024-12-15T14:33:46-05:00', 8, 1]\n",
      "['9pjdqO2', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_allc10))', 1.79, 0.1448, 1.2, 0.000897, '2024-12-15T14:00:36-05:00', 1, 1]\n",
      "['nNdepdq', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1m_normc50))', 1.79, 0.1392, 1.24, 0.000954, '2024-12-15T14:00:29-05:00', 1, 1]\n",
      "['j6AP23j', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1m_normc20))', 1.79, 0.1392, 1.24, 0.000954, '2024-12-15T14:00:28-05:00', 1, 1]\n",
      "['j6AoeE9', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1m_normc50))', 1.79, 0.1392, 1.24, 0.000954, '2024-12-15T13:54:19-05:00', 1, 1]\n",
      "['XobVRm0', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1m_normc20))', 1.79, 0.1392, 1.24, 0.000954, '2024-12-15T13:54:18-05:00', 1, 1]\n",
      "['7zN36e5', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_allc10))', 1.79, 0.1416, 1.22, 0.000929, '2024-12-15T13:54:17-05:00', 1, 1]\n",
      "['LGNEZo9', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(subindustry))', 1.79, 0.1397, 1.23, 0.000951, '2024-12-15T13:54:15-05:00', 1, 1]\n",
      "['oNLRW0l', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(industry))', 1.79, 0.1397, 1.23, 0.000951, '2024-12-15T13:54:15-05:00', 1, 1]\n",
      "['9pj8W39', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sector))', 1.79, 0.1397, 1.23, 0.000951, '2024-12-15T13:54:14-05:00', 1, 1]\n",
      "['1pXOZ2J', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(market))', 1.79, 0.1397, 1.23, 0.000951, '2024-12-15T13:54:14-05:00', 1, 1]\n",
      "['2pw9mw5', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(market))', 1.79, 0.1397, 1.23, 0.000951, '2024-12-15T13:54:08-05:00', 1, 1]\n",
      "['5pzrgMk', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1m_normc50))', 1.79, 0.1392, 1.24, 0.000954, '2024-12-15T13:54:04-05:00', 1, 1]\n",
      "['VGaZ0XV', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1m_normc20))', 1.79, 0.1392, 1.24, 0.000954, '2024-12-15T13:54:03-05:00', 1, 1]\n",
      "['OGNRNYY', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(market))', 1.79, 0.1397, 1.23, 0.000951, '2024-12-15T13:53:37-05:00', 1, 1]\n",
      "['kPovoqL', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1m_normc50))', 1.79, 0.1392, 1.24, 0.000954, '2024-12-15T13:53:36-05:00', 1, 1]\n",
      "['a1bebr2', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_minvol1m_normc20))', 1.79, 0.1392, 1.24, 0.000954, '2024-12-15T13:53:35-05:00', 1, 1]\n",
      "['PG2xZgL', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(market))', 1.79, 0.1397, 1.23, 0.000951, '2024-12-15T13:53:28-05:00', 1, 1]\n",
      "['lWv8Rgl', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(industry))', 1.79, 0.1705, 1.11, 0.000774, '2024-12-15T12:09:25-05:00', 1, 1]\n",
      "300\n",
      "['7zNj9q5', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(oth455_relation_roam_w3_pca_fact1_cluster_20))', 1.79, 0.2246, 1.03, 0.000664, '2024-12-15T11:53:03-05:00', 1, 1]\n",
      "['YvbEPOR', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sta1_allc50))', 1.78, 0.1546, 1.11, 0.000784, '2024-12-15T14:00:35-05:00', 1, 1]\n",
      "['e3bN95g', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sector))', 1.78, 0.1457, 1.18, 0.000883, '2024-12-15T13:53:29-05:00', 1, 1]\n",
      "['XobRxN0', \"group_neutralize(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(bucket(rank(cap), range='0.1, 1, 0.1')))\", 1.78, 0.1869, 1.04, 0.000689, '2024-12-15T12:58:57-05:00', 1, 1]\n",
      "['vNrOoaA', 'group_zscore(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 22),densify(sta1_allc10))', 1.78, 0.2781, 1.0, 0.000637, '2024-12-15T12:58:28-05:00', 1, 1]\n",
      "['dZboLwg', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_allc50))', 1.77, 0.2855, 1.11, 0.00078, '2024-12-15T14:33:59-05:00', 8, 1]\n",
      "['e3bN6pp', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_2_f4_g3_minvol_1m_sector))', 1.77, 0.1672, 1.06, 0.000713, '2024-12-15T13:54:19-05:00', 1, 1]\n",
      "['xN3V38m', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(sector))', 1.77, 0.1963, 1.01, 0.000655, '2024-12-15T13:53:37-05:00', 1, 1]\n",
      "['lWvWGOO', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(subindustry))', 1.77, 0.1272, 1.29, 0.001061, '2024-12-15T11:47:43-05:00', 1, 1]\n",
      "['5pzewYJ', 'group_zscore(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1m_normc50))', 1.76, 0.2986, 1.18, 0.000906, '2024-12-15T14:38:55-05:00', 8, 1]\n",
      "['8pjYzY7', 'group_zscore(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1m_normc20))', 1.76, 0.2986, 1.18, 0.000906, '2024-12-15T14:38:55-05:00', 8, 1]\n",
      "['r2OVXz1', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1m_normc50))', 1.76, 0.2904, 1.22, 0.000964, '2024-12-15T14:34:01-05:00', 8, 1]\n",
      "['OGNVaqJ', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1m_normc20))', 1.76, 0.2904, 1.22, 0.000964, '2024-12-15T14:34:00-05:00', 8, 1]\n",
      "['AGNl61Y', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(oth455_partner_roam_w3_pca_fact1_cluster_5))', 1.76, 0.2158, 1.08, 0.000751, '2024-12-15T11:53:35-05:00', 1, 1]\n",
      "['AGNmwLg', 'group_zscore(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(market))', 1.75, 0.2988, 1.17, 0.000899, '2024-12-15T14:38:52-05:00', 8, 1]\n",
      "['OGNVaeb', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_allc10))', 1.75, 0.2876, 1.17, 0.000887, '2024-12-15T14:33:59-05:00', 8, 1]\n",
      "['j6Axb6Z', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(subindustry))', 1.75, 0.2902, 1.21, 0.00096, '2024-12-15T14:33:43-05:00', 8, 1]\n",
      "['dZboARx', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(industry))', 1.75, 0.2907, 1.21, 0.000956, '2024-12-15T14:33:43-05:00', 8, 1]\n",
      "['nNdAlez', \"group_neutralize(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(bucket(group_rank(cap,sector),range='0,1,0.1')))\", 1.75, 0.1887, 1.01, 0.000671, '2024-12-15T12:58:57-05:00', 1, 1]\n",
      "['1pXxokQ', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(oth455_partner_roam_w3_pca_fact1_cluster_5))', 1.75, 0.2241, 1.04, 0.00071, '2024-12-15T12:09:51-05:00', 1, 1]\n",
      "['g8b8GpO', 'group_scale(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(industry))', 1.75, 0.1769, 1.03, 0.000694, '2024-12-15T11:47:44-05:00', 1, 1]\n",
      "['LGNrA11', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sector))', 1.74, 0.2908, 1.2, 0.00095, '2024-12-15T14:33:42-05:00', 8, 1]\n",
      "['1pXPQ7m', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(market))', 1.74, 0.2906, 1.2, 0.000955, '2024-12-15T14:33:42-05:00', 8, 1]\n",
      "['8pjVv8v', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_5_f3_g2_minvol_1m_sector))', 1.74, 0.1526, 1.1, 0.000805, '2024-12-15T13:54:17-05:00', 1, 1]\n",
      "['9pjdqmK', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_10_f3_g2_minvol_1m_sector))', 1.73, 0.129, 1.17, 0.000913, '2024-12-15T14:00:33-05:00', 1, 1]\n",
      "['KGNvmKk', 'group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_20_minvol_1m_sector))', 1.73, 0.1538, 1.1, 0.000809, '2024-12-15T13:54:17-05:00', 1, 1]\n",
      "['nNd6P2a', 'group_zscore(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(sector))', 1.73, 0.1745, 1.03, 0.000708, '2024-12-15T13:38:46-05:00', 1, 1]\n",
      "['YvbxO9l', 'group_neutralize(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(pv13_10_f3_g2_minvol_1m_sector))', 1.73, 0.1796, 1.02, 0.000697, '2024-12-15T12:58:59-05:00', 1, 1]\n",
      "['kPoWqvk', \"group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(bucket(group_rank(cap,sector),range='0,1,0.1')))\", 1.72, 0.1726, 1.02, 0.000708, '2024-12-15T14:00:31-05:00', 1, 1]\n",
      "['WAbojYj', \"group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(bucket(rank(cap), range='0.1, 1, 0.1')))\", 1.72, 0.1703, 1.03, 0.000723, '2024-12-15T14:00:31-05:00', 1, 1]\n",
      "['6pjJvjY', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(pv13_20_minvol_1m_sector))', 1.71, 0.2936, 1.06, 0.000767, '2024-12-15T14:33:45-05:00', 8, 1]\n",
      "['KGNvr1j', \"group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(bucket(rank(cap), range='0.1, 1, 0.1')))\", 1.71, 0.1592, 1.07, 0.000779, '2024-12-15T13:54:16-05:00', 1, 1]\n",
      "['qNxOzG1', 'group_zscore(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(sta1_minvol1m_normc50))', 1.71, 0.1681, 1.05, 0.000761, '2024-12-15T13:49:39-05:00', 1, 1]\n",
      "['EGpNaN9', 'group_zscore(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(sta1_minvol1m_normc20))', 1.71, 0.1681, 1.05, 0.000761, '2024-12-15T13:49:38-05:00', 1, 1]\n",
      "['PG2PgAq', 'group_scale(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(sta1_minvol1m_normc50))', 1.71, 0.1681, 1.05, 0.000761, '2024-12-15T13:38:54-05:00', 1, 1]\n",
      "['nNd6Prd', 'group_scale(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(sta1_minvol1m_normc20))', 1.71, 0.1681, 1.05, 0.000761, '2024-12-15T13:38:53-05:00', 1, 1]\n",
      "['nNd6Pga', 'group_zscore(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(market))', 1.71, 0.1686, 1.05, 0.000757, '2024-12-15T13:38:45-05:00', 1, 1]\n",
      "['XobaLZz', 'group_normalize(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(market))', 1.71, 0.1686, 1.05, 0.000757, '2024-12-15T13:18:57-05:00', 1, 1]\n",
      "['oNLoXav', 'group_neutralize(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(subindustry))', 1.71, 0.1686, 1.05, 0.000757, '2024-12-15T12:58:56-05:00', 1, 1]\n",
      "['zN8rErV', 'group_neutralize(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(industry))', 1.71, 0.1686, 1.05, 0.000757, '2024-12-15T12:58:56-05:00', 1, 1]\n",
      "['2pwjxmw', 'group_neutralize(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(sector))', 1.71, 0.1686, 1.05, 0.000757, '2024-12-15T12:58:55-05:00', 1, 1]\n",
      "['8pjvZjo', 'group_neutralize(ts_skewness(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 120),densify(market))', 1.71, 0.1686, 1.05, 0.000757, '2024-12-15T12:58:54-05:00', 1, 1]\n",
      "['PG28E1E', 'group_normalize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1m_normc50))', 1.7, 0.3016, 1.13, 0.000889, '2024-12-15T14:34:28-05:00', 8, 1]\n",
      "['kPoO5Ql', 'group_normalize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(sta1_minvol1m_normc20))', 1.7, 0.3016, 1.13, 0.000889, '2024-12-15T14:34:27-05:00', 8, 1]\n",
      "['g8bXZnm', \"group_neutralize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(bucket(group_rank(cap,sector),range='0,1,0.1')))\", 1.7, 0.1611, 1.05, 0.000766, '2024-12-15T13:54:16-05:00', 1, 1]\n",
      "['g8bZkzM', 'group_zscore(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(industry))', 1.7, 0.2318, 1.05, 0.000764, '2024-12-15T12:32:58-05:00', 1, 1]\n",
      "['dZbOQRX', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(pv13_20_minvol_1m_sector))', 1.7, 0.1745, 1.0, 0.000698, '2024-12-15T12:10:38-05:00', 1, 1]\n",
      "['j6A6PAj', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(oth455_partner_roam_w3_pca_fact1_cluster_5))', 1.7, 0.2198, 1.02, 0.000714, '2024-12-15T11:47:33-05:00', 1, 1]\n",
      "['0pX6oqp', 'group_normalize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(market))', 1.69, 0.3019, 1.12, 0.000881, '2024-12-15T14:34:42-05:00', 8, 1]\n",
      "['vNrpRo3', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_10_minvol_1m_sector))', 1.67, 0.1134, 1.09, 0.000935, '2024-12-15T14:00:34-05:00', 1, 1]\n",
      "['5pzA856', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_5_f3_g2_minvol_1m_sector))', 1.66, 0.1211, 1.09, 0.000888, '2024-12-15T14:00:32-05:00', 1, 1]\n",
      "['RmbKWnj', 'group_neutralize(ts_delta(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 5),densify(pv13_10_minvol_1m_sector))', 1.65, 0.2958, 1.01, 0.000751, '2024-12-15T14:33:57-05:00', 8, 1]\n",
      "['WAbojod', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(pv13_20_minvol_1m_sector))', 1.65, 0.1222, 1.09, 0.000894, '2024-12-15T14:00:32-05:00', 1, 1]\n",
      "['nNde3mx', 'group_zscore(-ts_arg_max(winsorize(ts_backfill(anl37_curprofit_cfn, 120), std=4), 22),densify(sta1_allc10))', 1.64, 0.2184, 1.07, 0.000853, '2024-12-15T14:06:31-05:00', 1, 1]\n",
      "['5pzrKp5', 'group_neutralize(-ts_arg_max(winsorize(ts_backfill(anl37_curprofit_cfn, 120), std=4), 22),densify(sta1_allc50))', 1.64, 0.2246, 1.0, 0.000746, '2024-12-15T13:58:42-05:00', 1, 1]\n",
      "['ZEbEzJ3', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(subindustry))', 1.64, 0.1291, 1.05, 0.00082, '2024-12-15T11:47:57-05:00', 1, 1]\n",
      "['zN8gYdd', 'group_zscore(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 120),densify(industry))', 1.63, 0.1198, 1.08, 0.000923, '2024-12-15T13:53:29-05:00', 1, 1]\n",
      "['WAb3r7o', 'group_neutralize(-ts_arg_max(winsorize(ts_backfill(anl37_curprofit_cfn, 120), std=4), 22),densify(sta1_allc10))', 1.62, 0.2191, 1.04, 0.000828, '2024-12-15T13:58:42-05:00', 1, 1]\n",
      "['OGNNMPq', \"group_normalize(ts_quantile(winsorize(ts_backfill(anl37_netprofit_cfc, 120), std=4), 22),densify(bucket(group_rank(cap,sector),range='0,1,0.1')))\", 1.62, 0.2987, 1.06, 0.000854, '2024-12-15T12:28:53-05:00', 1, 1]\n",
      "['zN82oLG', 'group_scale(-ts_arg_max(winsorize(ts_backfill(anl37_curprofit_cfn, 120), std=4), 22),densify(sta1_allc10))', 1.61, 0.2205, 1.06, 0.00086, '2024-12-15T14:05:05-05:00', 1, 1]\n",
      "['OGNGzwp', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_netprofit_cic, 120), std=4), 66),densify(pv13_10_f3_g2_minvol_1m_sector))', 1.61, 0.1648, 1.17, 0.001059, '2024-12-15T11:47:46-05:00', 1, 1]\n",
      "['qNxjbg1', 'group_normalize(ts_zscore(winsorize(ts_backfill(anl37_cp_cic, 120), std=4), 66),densify(sector))', 1.6, 0.1911, 1.03, 0.000832, '2024-12-15T11:53:40-05:00', 1, 1]\n",
      "400\n",
      "count: 188\n"
     ]
    }
   ],
   "source": [
    "so_tracker = get_alphas(\"12-14\", \"12-16\", 1.58, 1, \"ASI\", 500, \"track\", delay=1, name=\"ASI_so_an37_SUB\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "sec_count: 0\n",
      "1008\n"
     ]
    }
   ],
   "source": [
    "so_layer = prune(so_tracker['next'] + so_tracker['decay'], 'asi', 'anl37_netpro', 2)\n",
    "th_alpha_list = []\n",
    "for region, couples in so_layer.items():\n",
    "    for expr, decay in couples:\n",
    "        for alpha in trade_when_factory(\"trade_when\", expr, region):\n",
    "            th_alpha_list.append((alpha, decay))\n",
    "print(len(th_alpha_list))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "b'{\"user\":{\"id\":\"JW80368\"},\"token\":{\"expiry\":14400.0},\"permissions\":[\"CONSULTANT\",\"MULTI_SIMULATION\",\"PROD_ALPHAS\",\"REFERRAL\",\"SUPER_ALPHA\",\"VISUALIZATION\",\"WORKDAY\"]}'\n",
      "pool 0 task 9 post done\n",
      "pool 0 task 0 simulate done\n",
      "pool 0 task 1 simulate done\n",
      "pool 0 task 2 simulate done\n",
      "pool 0 task 3 simulate done\n",
      "pool 0 task 4 simulate done\n",
      "pool 0 task 5 simulate done\n",
      "pool 0 task 6 simulate done\n",
      "pool 0 task 7 simulate done\n",
      "pool 0 task 8 simulate done\n",
      "pool 0 task 9 simulate done\n",
      "pool 1 task 9 post done\n",
      "pool 1 task 0 simulate done\n",
      "pool 1 task 1 simulate done\n",
      "pool 1 task 2 simulate done\n",
      "pool 1 task 3 simulate done\n",
      "pool 1 task 4 simulate done\n",
      "pool 1 task 5 simulate done\n",
      "pool 1 task 6 simulate done\n",
      "pool 1 task 7 simulate done\n",
      "pool 1 task 8 simulate done\n",
      "pool 1 task 9 simulate done\n",
      "pool 2 task 9 post done\n",
      "pool 2 task 0 simulate done\n",
      "pool 2 task 1 simulate done\n",
      "pool 2 task 2 simulate done\n",
      "pool 2 task 3 simulate done\n",
      "pool 2 task 4 simulate done\n",
      "pool 2 task 5 simulate done\n",
      "pool 2 task 6 simulate done\n",
      "pool 2 task 7 simulate done\n",
      "pool 2 task 8 simulate done\n",
      "pool 2 task 9 simulate done\n",
      "pool 3 task 9 post done\n",
      "pool 3 task 0 simulate done\n",
      "pool 3 task 1 simulate done\n",
      "pool 3 task 2 simulate done\n",
      "pool 3 task 3 simulate done\n",
      "pool 3 task 4 simulate done\n",
      "pool 3 task 5 simulate done\n",
      "pool 3 task 6 simulate done\n",
      "pool 3 task 7 simulate done\n",
      "pool 3 task 8 simulate done\n",
      "pool 3 task 9 simulate done\n",
      "pool 4 task 9 post done\n",
      "pool 4 task 0 simulate done\n",
      "pool 4 task 1 simulate done\n",
      "pool 4 task 2 simulate done\n",
      "pool 4 task 3 simulate done\n",
      "pool 4 task 4 simulate done\n",
      "pool 4 task 5 simulate done\n",
      "pool 4 task 6 simulate done\n",
      "pool 4 task 7 simulate done\n",
      "pool 4 task 8 simulate done\n",
      "pool 4 task 9 simulate done\n",
      "loc key error\n",
      "b'{\"user\":{\"id\":\"JW80368\"},\"token\":{\"expiry\":14400.0},\"permissions\":[\"CONSULTANT\",\"MULTI_SIMULATION\",\"PROD_ALPHAS\",\"REFERRAL\",\"SUPER_ALPHA\",\"VISUALIZATION\",\"WORKDAY\"]}'\n",
      "pool 5 task 9 post done\n",
      "pool 5 task 0 simulate done\n",
      "pool 5 task 1 simulate done\n",
      "pool 5 task 2 simulate done\n",
      "pool 5 task 3 simulate done\n",
      "pool 5 task 4 simulate done\n",
      "pool 5 task 5 simulate done\n",
      "pool 5 task 6 simulate done\n",
      "pool 5 task 7 simulate done\n",
      "pool 5 task 8 simulate done\n",
      "loc key error\n",
      "b'{\"user\":{\"id\":\"JW80368\"},\"token\":{\"expiry\":14400.0},\"permissions\":[\"CONSULTANT\",\"MULTI_SIMULATION\",\"PROD_ALPHAS\",\"REFERRAL\",\"SUPER_ALPHA\",\"VISUALIZATION\",\"WORKDAY\"]}'\n",
      "loc key error\n",
      "b'{\"user\":{\"id\":\"JW80368\"},\"token\":{\"expiry\":14400.0},\"permissions\":[\"CONSULTANT\",\"MULTI_SIMULATION\",\"PROD_ALPHAS\",\"REFERRAL\",\"SUPER_ALPHA\",\"VISUALIZATION\",\"WORKDAY\"]}'\n",
      "pool 6 task 9 post done\n",
      "pool 6 task 0 simulate done\n",
      "pool 6 task 1 simulate done\n",
      "pool 6 task 2 simulate done\n",
      "pool 6 task 3 simulate done\n",
      "pool 6 task 4 simulate done\n",
      "pool 6 task 5 simulate done\n",
      "pool 6 task 6 simulate done\n",
      "pool 6 task 7 simulate done\n",
      "pool 7 task 9 post done\n",
      "pool 7 task 0 simulate done\n",
      "pool 7 task 1 simulate done\n",
      "pool 7 task 2 simulate done\n",
      "pool 7 task 3 simulate done\n",
      "pool 7 task 4 simulate done\n",
      "pool 7 task 5 simulate done\n",
      "pool 7 task 6 simulate done\n",
      "pool 7 task 7 simulate done\n",
      "pool 7 task 8 simulate done\n",
      "pool 7 task 9 simulate done\n",
      "loc key error\n",
      "b'{\"user\":{\"id\":\"JW80368\"},\"token\":{\"expiry\":14400.0},\"permissions\":[\"CONSULTANT\",\"MULTI_SIMULATION\",\"PROD_ALPHAS\",\"REFERRAL\",\"SUPER_ALPHA\",\"VISUALIZATION\",\"WORKDAY\"]}'\n",
      "pool 8 task 9 post done\n",
      "pool 8 task 0 simulate done\n",
      "pool 8 task 1 simulate done\n",
      "pool 8 task 2 simulate done\n",
      "pool 8 task 3 simulate done\n",
      "pool 8 task 4 simulate done\n",
      "pool 8 task 5 simulate done\n",
      "pool 8 task 6 simulate done\n",
      "pool 8 task 7 simulate done\n",
      "pool 8 task 8 simulate done\n",
      "loc key error\n",
      "b'{\"user\":{\"id\":\"JW80368\"},\"token\":{\"expiry\":14400.0},\"permissions\":[\"CONSULTANT\",\"MULTI_SIMULATION\",\"PROD_ALPHAS\",\"REFERRAL\",\"SUPER_ALPHA\",\"VISUALIZATION\",\"WORKDAY\"]}'\n",
      "pool 9 task 9 post done\n",
      "pool 9 task 0 simulate done\n",
      "pool 9 task 1 simulate done\n",
      "pool 9 task 2 simulate done\n",
      "pool 9 task 3 simulate done\n",
      "pool 9 task 4 simulate done\n",
      "pool 9 task 5 simulate done\n",
      "pool 9 task 6 simulate done\n",
      "pool 9 task 7 simulate done\n",
      "pool 9 task 8 simulate done\n",
      "pool 10 task 0 post done\n",
      "pool 10 task 0 simulate done\n",
      "Simulate done\n"
     ]
    }
   ],
   "source": [
    "th_pools = load_task_pool(th_alpha_list, 10, 10)\n",
    "multi_simulate(th_pools, \"SUBINDUSTRY\", \"ASI\", \"MINVOL1M\", 0, name=\"ASI_th_an37_SUB\", delay=1)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
